package io.renren.modules.service.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 产品表
 */
@Data
@TableName("tb_product")
@ExcelTarget("productEntity")
public class ProductEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	@NotNull(message = "产品id不能为空", groups = UpdateGroup.class)
	@Excel(name = "ID")
	private Integer id;
	/**
	 * 产品名称
	 */
	@Excel(name = "产品名称")
	private String name;
	/**
	 * 产品编号
	 */
	@Excel(name = "产品编号")
	private String number;
	/**
	 * 工位名称
	 */
	@Excel(name = "工位名称")
	private String workerName;
	/**
	 * 开始时间
	 */
	@Excel(name = "开始时间")
	private String startTime;
	/**
	 * 结束时间
	 */
	@Excel(name = "结束时间")
	private String endTime;
	/**
	 * 当前时间
	 */
	@Excel(name = "日期")
	private String current;
	/**
	 * 单个产品所用时间
	 */
	@Excel(name = "耗时")
	private String useTime;

	/**
	 * 手机编号
	 */
	private Integer deviceId;

}
